package com.itheima_7;

import java.util.concurrent.CountDownLatch;

public class chileThread1 extends Thread{
    private CountDownLatch c;
    public chileThread1(CountDownLatch c){
        this.c=c;
    }
    @Override
    public void run() {
        for (int i = 1; i < 10; i++) {
            System.out.println(getName()+"在吃第"+i+"个饺子");
        }
        c.countDown();
    }
}
